more compatible branch name finding