use something like https://github.com/visionmedia/node-pwd
use something like https://github.com/visionmedia/node-pwd