Temporarily switch to C locale in order to determine commands...

... if a locale other than "C" or "en_*" is detected. This fixes the menus in international environments (for the price of adding two bogus submenus "exec_menuitem" and "menu_<LOCALE>").