Use process.cwd() instead of process.env.PWD

By using process.cwd() instead of process.env.PWD, this module works on Windows.