Fix octave versions.

(cherry picked from commit 2537fb62c7356b721f69021493c2252d764822ac)