fix 'Arguments to path.join must be strings' error, grunt v0.4'

While trying to upgrade `emmet-docs` to use lates version of grunt, I encounter that error. I did the patch as have been mentioned https://github.com/gruntjs/grunt/pull/722