Added function to get git branch from build and fixed failing systests