Fix unfound git

I went back over the original code here and realised we could save doing the error handling exception altogether by specifying the branch we want when we clone. Tested and this works with tags also.

If no branch/tag is given then it defaults to master