Update current directory in inferior octave when completion starts

This commit allows local functions to be completed when user switches between octave buffers that are located in different directories.

For example when I open `a/a.m` file and `b/b.m` file later then while editing `b/b.m` file, functions located in `a` directory are completed. With this commit functions defined in `b` directory will be completed in this case.