HPCC-11317 Move list queries using file checking into CWorkUnitFactory

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>