Windows Bugfixes

Fixing NODE_ENV bug on windows