fixed windows version detection