Fix rotating log exception

Minor whitespace repair + log numbering off by one and logic for checking live log file