Update git-branch-build.sh

jenkins-deploy: fix problem when branch was checked out earlier.