Fix a bug in OS X detection.