Add hook to shell-mode to track the working directory based on /proc fs.