Use non-deprecated device identifier with fallback for iOS 5