Fix build from tarballs

It turns out my new version detection scheme didn't work when there
wasn't a git version attached.  This has been fixed.