fix issue #704, replacing variables in gcode file damaging line at file ...

see issue #704

I think the variables starting with underline should be kept private etc.
but this is a temporary workaround until the changes daid announced in issue #704
just to fix the bug for now...