fix os x version check