Skip non-directories during filesystem discovery