Use git describe --tags in version info