target: use common target_name to access target::cmd_name member