async function getPath(type, options) {
  if (type === 'chromedriver') {
    return path.resolve(
      options.cacheDir,
      `nwjs${options.flavor === 'sdk' ? '-sdk' : ''}-v${options.version}-${options.platform
      }-${options.arch}`,
      `chromedriver${options.platform === 'win' ? '.exe' : ''}`,
    );
  } else {
    throw new Error('Invalid type. Expected `chromedriver` but got ', type);
  }
}
Get path to various NW specific file paths.
@async
@function
@param  {"chromedriver"} type     - NW specific file or directory
@param  {object}         options  - nwbuild options
@returns {string}                  - Path to chromedriver
@throws {Error}