Followed ir2js changes.
Node usage: path.existsSync to fs.existsSync.