kernel build bug fixes

build type “both” builds kernel and roots for 1 device
build type “all” builds roots and kernel for all devices/versions