fix windows os detection