Added a check for dependents of inactive files, before uninstalling them.