Fixed the reporting of top-level permissions for directory listings.