issue #3275, set path_style for get_bucket_location only, remove larger scope