Use path.existsSync if fs.existsSync doesn't exist