build.sh: replace reg query with tclsh

As in openspim.sh, we can't be assured of the existence of reg query -- replace with tclsh, which we know will be present.