Replace fs.existsSync with fs.exists.