autojump.zsh: use `:h` modifier instead of `dirname`

Ref: https://github.com/joelthelion/autojump/issues/249