Make slices#cwd() function zsh compatible