Minor optimization in G-code export