Revert "Fix: Do not append a newline if using ReplaceInFile:"

This reverts commit 6afb5e604928cc51b2fdbdd4403dbdae7afcd954.
Merge branch 'master' into develop