Setting up envirnment depending on OS