Write out modified patches