fixed so that s3 client will work for every amazon bucket (changed
endpoint url style)