Added for travis-ci and octave tests.
Fix directory path.