More general OS X check