Fix the regex for S3 bucket names

Current regex disallows valid bucket names like `foo.bar`.  This regex
complies with the guidelines laid out in the [S3 Bucket
Restrictions](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html)
document.