Check for use_local in getEndpoint function.
Ignore config.json.old