Check synchronously if file/directory exists in Node.js | Hacker News Reader