Replace grep by $GREP.
Correct help message.
Modify tool output.

Put both thot_ilm_perp standard and error output in the same file.
Adapt to changes in thot_pbs_ilm_perp tool.