Fixed OSversion check