code: function Automaton(options) {
      var dirs;
      var dirname = __dirname;
      var rootDir = path.resolve('/');
  
      this._tasks = [];
      this._options = options;
  
      // load core tasks
      dirs = glob.sync(dirname + '/node_modules/autofile-*');
  
      // find up autofile's directory because latest npm >=v4 have node_modules tree flattened
      while (dirname !== rootDir && dirs.length === 0) {
          dirname = path.resolve(dirname, '..');
          dirs = glob.sync(dirname + '/autofile-*');
      }
  
      dirs.forEach(function (dir) {
          var errors = this.loadTasks(dir, 'autofile.js');
          if (errors.length) {
              throw new Error(errors[0]);
          }
      }, this);
  }
docs: Automaton.
  
  Available options:
  - verbosity - 0 means no logging
  1 means only 1 deep level tasks and so on..
  -1 means log every level
  - debug     - true to log debug messages, false otherwise
  - color     - true to keep colors in messages, false otherwise
  
  @param {Object} [options] The options