Windows fix for pwd

process.env.PWD is unset under windows. 
Replaced with http://nodejs.org/api/process.html#process_process_cwd