* use mkCmd to construct the mainCmd's exec.Command object. this sets c.Env correctly