Fixing some errors with exporting gcode to a folder when the STL not present.