dir.c added a redundancy measure to make sure that all file names are printed