For some reason, --version does not emit the same string as ends up in the artifact filename.

Do an awful hack that's probably broken in the general case.