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

Ref: https://github.com/joelthelion/autojump/issues/249
Merge pull request #252 from blueyed/master

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