For the shell commands we need to change to the directory of the
current buffer so that the commands work as expected.