Add some more debug logging to directory scanning.