Fixed a bug with upstream-removed packages that could skip an uninstall

and then fail to install with a 'multiple versions' error
Accept to (re)install upstream-removed packages if their metadata is still present

the previous check was too strict and made opam-rt fail
Fixed cleanup of metadata