Minor fixes to file logging