Moving more version logic into libsbt.