Fixed null ptr dereference in executable_path on solaris when getexecname fails.