CMake: configure_file use @ONLY

Don't replace ${foobar} strings which are valid expressions in some shell
files. Only replace @foobar@ occurrences.