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 libcore.sh, including the
template.sh template script.
Also corrected comments in p4u_env.sh.
Bypassing pre-commit review as this has been well tested.