Fix osx version recognition.