Fix a bug where bogus logging files would be created.
tuff