Add back support for --endpoint-url option to s3

The --endpoint-url option was re-enabled with commit https://github.com/aws/aws-cli/commit/d6c46df1572ec1e5d2f6fbe2213494c6a08cb1c3 but s3 uses different code to get the endpoint.
This adds back endpoint-url support for the s3 service.