code: function fix_munge(root) {
      root.prepare_queue = root.prepare_queue || {installed:[], uninstalled:[]};
      root.config_munge = root.config_munge || {files: {}};
      root.installed_plugins = root.installed_plugins || {};
      root.dependent_plugins = root.dependent_plugins || {};
  
      var munge = root.config_munge;
      if (!munge.files) {
          var new_munge = { files: {} };
          for (var file in munge) {
              for (var selector in munge[file]) {
                  for (var xml_child in munge[file][selector]) {
                      var val = parseInt(munge[file][selector][xml_child]);
                      for (var i = 0; i < val; i++) {
                          mungeutil.deep_add(new_munge, [file, selector, { xml: xml_child, count: val }]);
                      }
                  }
              }
          }
          root.config_munge = new_munge;
      }
  
      return root;
  }
docs: convert a munge from the old format ([file][parent][xml] = count) to the current one