if it is empty we visit every directory on the system which currently happens on freebsd. (cherry picked from commit deeb6ecd)