fix check for OS X version