Fix deletion on invalid symlinks.

It seems that Sys.file_exists returns false if a symbolic link exists but is broken. To avoid this, we also use Unix.lstat to be completely sure.

Fix #520