small cleanup in gcode_process