path.Join already automatically skips empty path segments when joining, so this simplifies the s3Path code.