Fix nested paths in directory listings.