code: function findModules(dirs)
  {
      let paths = [];
  
      for(let rawDir of dirs) {
          let moduleDir = utils.resolvePath(rawDir);
          let allFiles = [];
          
          try {
              allFiles = fs.readdirSync(moduleDir);
          }
          catch(exc) {
              // No warning if module directory is nonexistent
              if(exc.code != 'ENOENT')
                  console.warn('Warning: error reading module directory "' + moduleDir + '": ' + exc);
          }
          
          for(let file of allFiles) {
              if(path.extname(file).toLowerCase() == '.js')
                  paths.push(path.join(moduleDir, file));
          }
      }
      
      return paths;
  }
docs: // Helpers