Prepare patches with appropriate file prefixes