If your storage requires path-style access then it's not really "S3-compatible" since S3 doesn't require path-style access, and indeed path-style access is being entirely removed from S3. I suggest working with your storage supplier to address this.
6.2 is really old, long past EOL, you should also upgrade as a matter of urgency. One of the improvements in more recent versions is support for Minio which does still expect path-style access. I don't know of any other solution, but then the version you're using is so old that I don't have a working development environment for it any more so I can't even look at the code to check.