dir.c: fix ignore processing within not-ignored directories