Path style for s3 endpoint

Don't use the bucket and region logic when the endpoint is specified.

Please don't merge this PR yet, it is meant as a discussion for #1174