Fixed region_endpoint bad check

Bad check for european region for s3 amazon.