If you read this thread carefully you may find some ideas for improving your command line, if you feel like spending some more time trying the alternate method.
FWIW you may also want to try the “fmtownshr” folder and BIOS instead of “fmtmarty”. They are essentially the same system.
Also, make sure your XML and BIOS files are from the version of MAME that matches the core you are using. BIOS files can change over time.