update branch detection for new git output circa 1.8.3.4