rewrote kernel package version handling