code: function findBinary(binFolder, name, message, extraInfo) {
    var binary = null;
  
    // first look in binFolder
    try {
      binary = which.sync(name, { path: binFolder });
    } catch (e) {}
  
    // then just look all over path
    if (binary === null) {
      try {
        binary = which.sync(name);
      } catch (e) {
        logError(message);
        logErrorMessage(extraInfo);
        exit(1);
      }
    }
  
    logInfo("Found " + name + " at " + binary);
    return binary;
  }
docs: /*
  Locate a binary based on name, if not found, error out with message
  Provide binFolder in order to look there first