zdir: use S_ISDIR macro instead of masking yourself
Merge pull request #672 from Q-Leap-Networks/pull-zdir-isdir

zdir: use S_ISDIR macro instead of masking yourself