Only set directory.json once, not once per app.