Some fixes in the parsing stuff to accept pcb2gcode input