diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/a_command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/a_command.sh
index f314fd7b8a2b1e4551bfda5776890a543be81c81..43512131816ef0e0216f70e33d644c37d682cba9 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/a_command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/a_command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=ImprovedLinkingA'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=ImprovedLinkingA'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/b_command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/b_command.sh
index 33bba0e10d719b8f5bc2b306df3d208f368da519..1d91af1e994bd0e7778fb625bfaa73df23dedb34 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/b_command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/ImprovedLinking/Scripts/b_command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=ImprovedLinkingB'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=ImprovedLinkingB'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/Normal/command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/Normal/command.sh
index e4155ae13afcb3bd55e76cc2afa33d35d04252ce..8b0257f87a859e3635dfcb7928d103b56e61713c 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/Normal/command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/Normal/command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=Normal'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=Normal'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/a_command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/a_command.sh
index 66452bffe7a401ef4eb92a8bf5d7599b5e5401b3..d5324bd585f7d36723c0694927a295ab5a2bf897 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/a_command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/a_command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=OneMakefileWithAllFilesA'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=OneMakefileWithAllFilesA'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/b_command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/b_command.sh
index 8510fd3ea3ef08f714e9d78d07a46d45f32b1418..88020e5c22aa5217a7b8bb4ff26136f0f88b309d 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/b_command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/OneMakefileWithAllFiles/Scripts/b_command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=OneMakefileWithAllFilesB'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=OneMakefileWithAllFilesB'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/a_command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/a_command.sh
index aacc8b1d8d6195ae640861433e5ee16c0c51acdb..f98ee30e05b8edef3801ed6dfc60547d458fe725 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/a_command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/a_command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=RecursiveHierarchyA'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=RecursiveHierarchyA'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/b_command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/b_command.sh
index 1e53bcc1f471acdf0021628e8934e180e89bb63b..5cf8b54137e644fca16561c8e9d3988f3a6209f1 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/b_command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/Scripts/b_command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=RecursiveHierarchyB'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=RecursiveHierarchyB'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileDir/command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileDir/command.sh
index 0c09898ff8fc074183bb307b6f8a8bbde727c405..cd69a9454d0591055f244cc47e87c980607d6388 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileDir/command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileDir/command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=WithMakefileDir'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=WithMakefileDir'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileName/command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileName/command.sh
index 05ee12cf42572493677fcf169fc4bacc6d873422..698b1c0429432dd17399b9149bf9956574176f73 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileName/command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefileName/command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=WithMakefileName'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=WithMakefileName'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefilePath/command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefilePath/command.sh
index 48758f393fe6d1c19bcbda3279d0591bc344258a..63189b88eaee2dbe4a26b4f308e6328d2bcb0d06 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefilePath/command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/WithMakefilePath/command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=WithMakefilePath'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=WithMakefilePath'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/WithReqConfig/command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/WithReqConfig/command.sh
index 47680bd8a426e290d5673fd1399a5105eacfd82e..e3be4a3ceba276cbdacc13da1343d6cc72b450d0 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/WithReqConfig/command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/WithReqConfig/command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=WithReqConfig'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=WithReqConfig'
 
 sed -e "$editcmd" <$1 >$2
diff --git a/regression_test/compileonly/mfgen-tpd/makefileScript/WithScriptDiffDir/Script/command.sh b/regression_test/compileonly/mfgen-tpd/makefileScript/WithScriptDiffDir/Script/command.sh
index 2bb656b2de684b068a7fc5fe34b596de831b438e..0d6ddf2f45ef2be99392c3dfbad7d663f6769454 100755
--- a/regression_test/compileonly/mfgen-tpd/makefileScript/WithScriptDiffDir/Script/command.sh
+++ b/regression_test/compileonly/mfgen-tpd/makefileScript/WithScriptDiffDir/Script/command.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
-editcmd='/COMPILER_FLAGS/a SCRIPTFLAG=WithScriptDiffDir'
+editcmd='/COMPILER_FLAGS/a\
+SCRIPTFLAG=WithScriptDiffDir'
 
 sed -e "$editcmd" <$1 >$2