It is possible that the binary isn't accessible (e.g. Cray launcher) and it
is not valid to call isEquivalent if the path is invalid.
Change-Id: Idf82a8c951fdc91a2de15d310843d54961ba74eb
bool *bSourceLayout)
{
*bSourceLayout = false;
- // If the input path is not absolute, the binary could not be found.
- // Don't search anything.
- if (Path::isAbsolute(binaryPath))
+ // Don't search anything if binary cannot be found.
+ if (Path::exists(binaryPath))
{
// Remove the executable name.
std::string searchPath = Path::getParentPath(binaryPath);