Add ability to have a dynamic S3 bucket path

Add a protected method to allow overriding how the s3Bucket is determined.