- rewrote the directory traversal code to use 'EsafeChdir()' and