[FIX] Replace: Switch 'use_regex' and 'flags'

In Replacment.compile both parameters have been used the other way
around compared to the rest of the script, which also meant that one
call could produce erroneous results.

Change-Id: Ifa133e3685baa4baffd9f5437f4a720832f49c4f