Generate version string from git revision number.