dir_list.c - Get rid of dependencies on miscellaneous.h