add a path check to make sure we can find xrefs.json