Fix os detection for osx 10.10.