Remove dead and incorrect code.

is_symlink was always false since it was using stat instead of lstat.