entry-directories: Only recurse if we have a dir

This prevents subdir entries from being created for files like
mimeinfo.cache and similar...

Why wasn't this being done before??
entry-directories: Only log about invalidations if it was handled