Fixed OS X detection.