isExecutablePathSync = (filepath, { fs = nodeFs } = {}) => {
  try {
    fs.accessSync(filepath, fs.constants.X_OK | fs.constants.R_OK)
    return true
  } catch {
    return false
  }
}
Returns `true` if the file at `filepath` is executable (and readable)

Note: we will not actually execute the file, but we expect it to have the
proper permissions; this is used for locating an executable ("bin") script.

@param {PathLike} filepath Path to check
@param {WithFs} [options] Options
@returns {boolean} `true` if the file is executable