dir: fix COLLECT_IGNORED on excluded prefixes