Update build_kernel.sh

Modified the build script to be more independent