What happens if zDir contains single quotes?
That'd be my guess, at least, but, i guess, single quotes aren't valid characters for zDir.
(In the absence of this, and certainly in the absence of official docs/examples that do the right thing, that's a security vulnerability waiting to happen.)