Fix calling existsSync.