Adds patch for generating the config file correctly.