Merge pull request #106 from mikegerwitz/master

Correctly handle detached head for 'latest' on latest Git versions