- fixed regexp flags, causing trouble in older perl versions