code: function resolveDir(directories)
  {
    var directoriesAbsPath;
  
    if (typeOf(directories) == 'array')
    {
      directoriesAbsPath = directories.map(function(d)
      {
        return path.resolve(d);
      }).join('|');
    }
    else
    {
      directoriesAbsPath = path.resolve(directories);
    }
  
    return directoriesAbsPath;
  }
docs: Resolves `directories` argument into a absolute path
  
  @param   {array|string} directories - directories to resolve
  @returns {string} - absolute path to the directories