fix windows detection