[Git][ghc/ghc][master] testsuite: avoid re.sub in favor of simple string replacements