added isOctave function: detects whether you're in octave or matlab