dir.c: Make git-status --ignored more consistent