handle git tags properly on cloning.  clone -b does not support tags.
Merge pull request #134 from svalinn/improve_git_tag_handling

handle git tags properly on cloning.  clone -b does not support tags.