Add support for zsh named directories

Fixes #502