WIP: problem with branch when ran from jenkins - asking for devel in
jenkins, but git branch returns '(detached from fda97cd)', changed
to use GIT_BRANCH if set (which jenkins sets)

refs #75, #70, #49, #47