dir.c: prepare match_pathspec_item for taking more flags