Fix OS X's version detecting