Make sure switch_branch uses the right __head