remove_old_packages: fix error for kept packages