Extract common pattern glob/patch_mod_file
Fixes for ShatteredEurope errors