Fix handling of the target argument in send_command. #4160.