Detect location of the catalog.json automatically