Fix bug in dirutils.DeleteIfEmpty: should expect io.EOF