add check for ps2pdf so plot generation will not fail in gnuplot