fixed windows detection and handling