Added version check to OSX