HPCC-9629 New language features to support bundles

More code cleanup, and fix issue spotted in review.

Make sure filename is consistently cased.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>