Fixed crash on startup after adding a mame exec,better mame exec handling