change auto handling to use the `PROMPT_COMMAND` env

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

Closes #19.