Add ability to run commands when exiting a directory.
Merge pull request #1 from ijcd/unenv

Add ability to run commands when exiting a directory.