Tweak logic to fix tree deletion attempts on symlinks.