bf: compatibility with old version of node, when fs.existsSync was path.existsSync