fix environment issue for win7/win8

this fixed issue for me on windows 8

credit for fix goes to "Environment" section of windows and node article on [dailyjs](http://dailyjs.com/2012/05/24/windows-and-node-4/)