Fix up pre-uninstall script so it removes the alternative links properly