    * @return {string} Renamed path
   ###
   humanReadableUrl = (pagepath) ->
-    exclude  = taskConfig.humanReadableUrls.exclude
-
-    ext      = path.extname(pagepath)
-    basename = path.basename(pagepath, ext)
-
-    if !exclude.test(basename)
-      pagepath = pagepath.replace(basename + ext, basename + '/index' + ext)
+    _exclude  = taskConfig.humanReadableUrls.exclude
+
+    _ext      = path.extname(pagepath)
+    _basename = path.basename(pagepath, _ext)
+
+    if !_exclude.test(_basename)
+      pagepath = pagepath.replace(_basename + _ext, _basename + '/index' + _ext)
     pagepath
 
   # Output or not locale's dir name based on whether it's base locale or not.

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

          ###*
           * Get information about page from specified object.

           * @return {object} Contains all page's properties, including it's sub pages
          ###
          env.addGlobal 'getPage', (obj, path, subName = 'sub') ->
            _subbedPath = _.clone(path)
            _i = 1
            _position = 1
            while _i < path.length
              _position = if (_i > 1) then _position + 2 else _position
              _subbedPath.splice(_position, 0, subName)
              _i++
            result = _.get(obj, _subbedPath)
            if result then result else grunt.log.error('[getPage] can\'t find requested `' + _subbedPath + '` inside specified object')

          ###*
           * Expose `moment.js` to Nunjucks' for parsing, validation, manipulation, and displaying dates
