Changed how to determine if using iOS7

Using kCFCoreFoundationVersionNumber instead of the version from
UIDevice