much better version check for Mac issue