fix detection of removed packages