Improvements to support formatting directory listings