Simplified Rails version detection.
Fixed xml matching in S3 client spec.