fixed detection for osx 10.10