Set working directory to the current file

Automatically change the current directory.
Sometimes it is helpful if your working directory is always the same as
the file you are editing.