Fix log rotator

Fixed the log rotation section of the script which should now take care
of data logs which rotate out from under the input framework analyzer.