build scripts all kernels:  fix derp logic in error checking
Signed-off-by: Paul Beeler <sparksco@gmail.com>