Copy default config files into TS_ROOT then modify according to config.json.