CMake: configure_file use @ONLY

Don't replace `${foobar}` strings which are valid expressions in some shell
files. Only replace `@foobar@` occurrences.

I have additionally removed the curly brackets from "${control_sequence}\a" but this should work with sh shells.