Fixed a few minor bugs in the dirlist module.