[PATCH v2 04/16] x86: zboot: Move kernel-version code into a function