Review 22629

C. Thomas Tyler
Fixed minor order-of-processing bug resulting in a harmless error
appearing at the end of script processing as cleanTrash() was
called to clean garbage files.  The run() function was called to
clean garbage files/dirs just as a directory that function depended
on got cleaned up.

The fix was applied to scripts that used, including the template script.

Also corrected comments in

Bypassing pre-commit review as this has been well tested.
Tip: Use n and p to cycle through the changes.