Fix a bug in list_subdirs where files may be listed