Handle single-line directory listings better.
Extracted columnizing logic into its own method.