emergency fix of config.json filewriting to wrong directory
emergency fix of config.json filewrite happening in wrong directoy.