One more issue resolved with windows
Fixed windows check so it work with both git bash and windows shell
Added check for SERVER['SystemRoot'] so it will work from browswer