Fixed bug when running on node v0.10

In the new version of nodejs, arguments to path.relative() cannot be undefined
Merge pull request #2 from cspotcode/master

Fixed bug in nodejs 0.10