DIRSTACK now dynamically allocates pathName variable.