Removed some dead code and fixed the ../ bug in dumpPath and dumpDirectories