CB-6414 Fixes the issue where two config.xml munges exist, it will still write the correct config.xml output