One minor optimization in GCode.pm