check for non-zero NSGetExecutablePath return, fixes #2394

TIny fix for checking wrong return value.