tweaked kernel build code to be more reliable
tweaked kernel build code to be more reliable

openai/openai-gemm,ekelsen/openai-gemm,ekelsen/openai-gemm,ekelsen/openai-gemm,openai/openai-gemm,openai/openai-gemm,ekelsen/openai-gemm,openai/openai-gemm