Fix iOS 7 sdk detector