core: set DNAV_DIRECTORY correctly for zsh versus bash