configure script: fix bug in Octave detection