doctor: combine git existence and version checks