Use kvm.sh to get KRE when using build.sh

Modified build.sh and build-template.sh to use kvm.sh to get KRE.
Added kvm.sh to build dir