bugfix: compatibility of node 0.10.x (fixed #16)

It seems to be caused by the change in process.cwd.

Test OK on node v0.10.3. But may fail on older version.