docs: function find_node_module_folder(basedir){
    var dirsep = basedir.split(path.sep);
    var result = [];
  
    var dirpart, dirname;
  
    for(var i = dirsep.length; i > 0; i--){
      if(dirsep[i-1] === 'node_modules') continue;
  
      dirpart = dirsep.slice(0, i);
      dirpart.push('node_modules');
      dirname = dirpart.join(path.sep);
  
      if(fs.existsSync(dirname) && fs.statSync(dirname).isDirectory()){
        result.push(dirname);
      }
    }
  
    return result;
  }