Deal with zsh in 'dir in path'; non-interactive bash ignores this.

I'll have to sort out bash later, but this will do for now.