Change check for shasum

shasum wasn't getting found on OS X 10.9.1 with zsh 5.0.5
Add ability to run commands when exiting a directory.