internals: replace % for both matlab and octave with %%
fix try / catch statement for octave