remove code expecting trailing slash; fix representation of root directory; fix memory leak; statcache walk