Fix listing of directories containing invalid symbolic links.