Setting the code_version early in the code breaks upgrading tenant sites.

The side-effect of this fix is that there is no way to set a default for --version.  However, since it's
arg spec is =i, which is a mandatory integer, this is fine.