Fix directory paths in pre/post managed bundles