            * @param {string}               cwd     = buildDir + '/' Root for lookup
            * @return {array} Array of found files or directories
           ###
-          env.addGlobal 'expand', (path = '', pattern = '**/*', filter = 'isFile', cwd = buildDir + '/') ->
+          env.addGlobal 'expand', (path = '', pattern = '**/*', filter = 'isFile', cwd = buildDir) ->
             _files = []
             grunt.file.expand({ cwd: cwd + path, filter: filter }, pattern).forEach (_file) ->
               _files.push(_file)

  taskConfig =
    autoescape          : false
    data                : grunt.config('data')
    path:
      build             : grunt.config('path.build.root')
      templates         : grunt.config('path.source.templates')
      nunjucksEnv       : grunt.config('path.source.templates')
    files:
      cwd               : '<%= path.source.templates %>/'
      src               : ['{,**/}*.{nj,html}', '!{,**/}_*.{nj,html}']
      dest              : '<%= path.build.root %>/'
      ext               : '.html'
    humanReadableUrls:
      enabled           : true

            ulrlify(string, options)

        preprocessData: (data) ->
          pagepath     = humanReadableUrl(@src[0].replace(templatesDir, ''))
          pagedir      = path.dirname(pagepath)
          pagedirname  = path.basename(pagedir)
          pagebasename = path.basename(pagepath, path.extname(pagepath))
