The daily snapshots have no associated git tag, so provide a commit hash instead in these cases. Fix the dpkg detection since the shell would exit immediately without showing an error message if it weren't found. Closes #14820
Closes #14797