Was using fs.existsSync wrong