fix an issue in emulated NSGetExecutablePath()