test(dirs): emit error on fs.stat failure