Fix to handling error case when obtaining executable path fails.