Fixed OS X detection