Adjust git branch and sha retreival to use better commands.