code: function checkPath(string, callback, done) {
      var path = string;
      if (!(/^\.|\//).test(string)) {
          path = './' + string;
      }
  
      fs.stat(path, function(err) {
          if (err) {
              console.log(chalk.red('Error, cannot open: %s'), string);
              process.exit(1);
          } else {
              callback(path, done);
          }
      });
  }
docs: Check the path provided by the user, prefixing it with `./` if it's not an explicitly provided as an absolute or relative path. Valid paths are passed to the provided callback.