dir.c: skip .gitignore, etc larger than INT_MAX