fix version check to work properly on iOS 8