collect gnuplot version
offer two different formats.

There is some redundancy in this section which should be cleaned up