checkout: do not get confused with ambiguous tag/branch names