Fixed bug when running on node v0.10

In the new version of nodejs, arguments to path.relative() cannot be undefined