build: image: Fix off-by-one in DTC kernel version checks