That error means the shell doesn't recognize the file you're trying to launch. What does "file /whatever/mame" say?