fix possible errors when testing if the file is a directory or a symlink. error could append with hard concurrency
fix possible errors when testing if the file is a directory or a symlink. error could append with hard concurrency

kerphi/node-inotifywait,Inist-CNRS/node-inotifywait,codio/node-inotifywait