replace $stderr.puts with $stderr.write as $stderr.puts causes an error in SketchUp