change auto handling to use the `PROMPT_COMMAND` env

This avoids an anti-feature of hooking the `cd` method.

Closes #19.
Merge pull request #30 from redding/kr-promptcmd

change auto handling to use the `PROMPT_COMMAND` env var