It's possible to add and change rompaths in the runcommand loader.

This is a full example from what is installed with my module-script :

lr-mame-basename = "/opt/retropie/emulators/retroarch/bin/retroarch --config /opt/retropie/configs/arcade/retroarch.cfg --appendconfig /opt/retropie/configs/arcade/retroarch.cfg.basename -S /home/pi/RetroPie/roms/arcade -s /home/pi/RetroPie/roms/arcade -v -L /opt/retropie/libretrocores/lr-mame/mamearcade_libretro.so 'mame -cfg_directory /opt/retropie/configs/arcade/lr-mame -c -ui_active -rompath /home/pi/RetroPie/BIOS/mame;/home/pi/RetroPie/roms/arcade/ '%BASENAME%''"

You probably can use parts from above runcommand to add the rompaths to your runcommand.
I would focus on this part :

'mame -cfg_directory /opt/retropie/configs/arcade/lr-mame -c -ui_active -rompath /home/pi/RetroPie/BIOS/mame;/home/pi/RetroPie/roms/arcade/ '%BASENAME%''

Or you can use my project and ,depending on what you install, use the rompaths that are generated for the specific system or category.

Edit:
Also read this for using commandline options :
https://docs.mamedev.org/commandline/commandline-all.html