repl: fix recursive replacement
rpmgs: fix get xz tarball