Convert S3 url from s3.amazonaws.com/bucket to bucket.s3.amazonaws.com. Fixes #8