use `git describe` instead of ctime for build versions

Also, try and guess whether this is a prerelease version.