a little fix for the s3n redirect behavior on ec2