When building a docker we relay on `VERSION` value from `SCYLLA-VERSION-GEN` . For `rc` releases only there is a different between the configured version (X.X.rcX) and the actualy debian package we generate (X.X~rcX) Using a similar solution as i did indcb10374a5Fixes: #9616 Closes #9617 (cherry picked from commit060a91431d)