Replaced git branch fetch method with much smarter git rev-parse --abbrev-ref HEAD