doctor: fix incorrect remote check