code: function getWorkingPath(file) {
  
        var completePath = JSON.stringify(file).slice(2,-2).split('/'),
          lastPathElement = completePath.pop(),
          fileDirectory = completePath.splice(lastPathElement).join('/');
  
          return fileDirectory;
      }
docs: Get working path to automaticaly searching for default template.