try catch fs.stat call on dir. Fixes GH-153.