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

and then fail to install with a 'multiple versions' error