Add support for patchfiles