minor code cleanup
use zsh change directory hook rather than pre-command hook