fix for `find-relevant-directory-records'

Multiple package-based instances of the same collection were not
handled correctly.