Improved the way the s3 region was configured on the sdk