detect git branch name (using jgit)

Change-Id: I02914abe84cc32f462a0ef94978658afc41cc242