Updated the git branch retrieval logic.

With the new version of ubuntu the method that is used to retrieve
what branch the repo is currently on would also pull out the remote
branch that is being tracked as well.