Fix windows detection