Either implement this patch (D1042) and then run the script, or first run the script and afterwards fix the following five lines:
scenarios/cinema_demo.xml: line 106
scenarios/triggers_demo.xml: line 69
scenarios/units_demo.xml: line 44
skirmishes/gallic_fields_(3).xml: line 98
tutorials/introductory_tutorial.xml: line 88
Check if everything works after renaming.