Add support for compiling using make.sh without '.git' (ie, from a Github tarball, for example)
Merge pull request #2804 from tianon/fix-hack-git-assumption

Hack: add support for compiling using make.sh without '.git'