Zsh slash check

Replaces bash dependant slash check