Stripping off remote preference when geting git branch from GIT_BRANCH