dumpkeys truncated keys.json before writing it, so a failed write left a partial file; app now writes it through the same temp-file-and-rename path zips use. Unzipping moves next to zip writing and checks entries with filepath.IsLocal.