replaced path.existsSync with fs.existsSync
(path.existsSync is now called `fs.existsSync`)