patch the config file in the destination folder