lib/utils/finder.js
function getDirectoriesSync(dir) {
  return fs.readdirSync(dir)
      .filter(function(item){
        return fs.statSync(path.join(dir, item)).isDirectory();
      });
}
function getDirectoriesSync(dir) {
  return fs.readdirSync(dir)
      .filter(function(item){
        return fs.statSync(path.join(dir, item)).isDirectory();
      });
}
Get list of directories `dir` from synchronously

@param {String} dir
@param {Function} cb