Include version codename in the generated version string.

Fixes #12205.