Fix handling of the target argument in send_command. #4160.
Version history for #4160