update the variable patch MAME automatically

I made a modification to take the path of MAME automatically.