dir.c: make git_fnmatch() not inline