Adding fix for Rails 4.1

Reference https://github.com/marcel/aws-s3/pull/95/files