Fix gnuplot path handling