added dir probing for ZSH