Updated dudir to take . files into consideration