Use the synchronous version of fs.exists

The issue: access the dir when it was not created