change auto handling to use the `PROMPT_COMMAND` env var

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