Registrar state should now be written correctly on windows
Remove old state file before trying to rename current to old
Should now support CRLF line endings in logfiles