fix copying bundles, allow missing dependencies and handle them safely