Remove untracked symlinks to directories.

We have to deal with the fact os.walk() treat symlinks to directories as if they were directories (returning them in the dirname list of the tuple), but we need to treat them as files.