Detect enviroment (WIN) and sets $env

This is needed detecting windows/linux enviroment during development