Fix OS X's version detecting
Merge pull request #236 from orangeudav/patch-1

Fix OS X's version detecting