check parent directory dependencies also during package removal