The DEB version substitution used ${VERSION/-/~} which caused bash to expand ~ to $HOME (e.g. /home/runner), producing an invalid version string like '1.0.0/home/runnerrc.1'. Store ~ in a variable first to prevent tilde expansion.