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