Tidy up of directory listing as well as indication as to which entries are files and which are dirs.