Fixed zsh syntax error pertaining to directory checking