Harden epilog/prolog test program

Make it work on PERCS system.
Add job time limit to avoid indefinite hang
Purge vestigial file from previous run
Exit on fatal condition rather than trying to continue execution