fix up testing and diagnostics (e.g. extract gnuplot version number)