HPCC-10498 Fix problems corpying bundles with nested directories.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>