Remove installed dependencies when cleaning up.