Fix installed_packages and remove_packages path