Added a fetch and update on git to get remote branches

Fixes a problem when remote git branches cannot be found