Improved determination of Octave version.