Create json config, fix cwd for scripts