apply patch for entire in build script