Preparing for 'quill build all'

Refactored content of tool_build.tcl.