don't use git -C to change working directory: requires modern git. set cmd.Dir instead