Fixing isWin deprecated function