HDDirectory: fix path for items, fixes #14639

Obvious fix: without it path stored with random type slashes and later path itself is matched directory, but item don't match.