OS check win7 / winXP fix for winXP