function resolvePaths(name, paths) {
  var filePath;
  if (paths.some(function (v) {
    filePath = exports.resolveInclude(name, v, true);
    return fs.existsSync(filePath);
  })) {
    return filePath;
  }
}
Try to resolve file path on multiple directories

@param  {String}        name  specified path
@param  {Array<String>} paths list of possible parent directory paths
@return {String}