Added support to check for existence of a git branch in bsession.