Doctors: Fix branch selection for fetch and build