No longer crashes on broken symlinks.

Uses os.lstat instead of os.stat, so does not attempt to
follow symlinks at all.