Ignore broken symlinks.

Also, remove duplicate `fs.statSync`.