update template build script