added --lstat flag to use fs.lstat instead of fs.stat. suppresses errors when symlinks exist, but probably needs broader solution for symlinks.