Possible fix for logfile rotation