mac version check fixed