Make gnuplot scripts robust