move config filename normalize code into loadJson()