HPCC-10498 Fix problems copying bundles with nested directories.

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