Added checks on log files and wildcard to catch file rollover at midnight