Respect all git versions

Since 1.8.5 git doesn't use `# ` in output. See http://blogs.atlassian.com/2013/12/whats-new-git-1-8-5/