Added patching of files to script