switching from fs.stat to fs.lstat to make directory read operations compatable with directories that have symlinks