add version.go from hashicorp/consul