Switched to far simpler method of getting branch name