check for non-zero NSGetExecutablePath return, fixes #2394
Merge pull request #2401 from danomatika/develop

check for non-zero NSGetExecutablePath return, fixes #2394