HPCC-11603 Fix issue copying file on non-Thor groups

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #6216 from jakesmith/hpcc-11603

HPCC-11603 Fix issue copying file on non-Thor groups

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>