[mhg] Add defaults for --cwd and --repository.