Fix <version>.tar.gz file handling during S3 deploy

[#69671476]