fix os x OS-detection