String resolves the version to report: the ldflags-injected value when built
for a release, otherwise the module version from build info (set to a clean
tag when the binary is produced by `go install <module>@vX.Y.Z`), otherwise
"dev" for plain source builds.