Allow git files to start with a '.'
Only check for directories in vist_predicate.

It's only used to check directories, so there's no point in checking for
file types here.