Improved log file rotating issues