Fix gh-722 hthor file resolution issues
Fix gh-722 hthor file resolution issues

Several regression tests failed because filenames are incorrectly mangled
as a result of the introduction of the TDXjobtemp file flag.
Fix this problem by checking for both TDRtemporary and TDXjobtemp and
mangle filenames accordingly. Also reference new flag to note temp files
for later deletion

Signed-off-by: William Whitehead <9d69611803ea426c9da0f43b4e04fcc22652476d@lexisnexis.com>

afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform