Try doing a fresh checkout and compare your existing version of .../acs-templating/tcl/query-procs.tcl to the new checked-out version.