Re-added support for repos configured via json file, set 404 ret code if local path not found