xemnames: fix cache.json check for file