modify the method of checking OS version