Fix path.resolve errors in newer node versions
Merge pull request #1 from thatsmydoing/master

Fix path.resolve error in newer node versions