Handle trace file rotation better. Specifically, when doing the first rotation (from FILE to FILE.1), rename the old file to .0 - this makes more sense and simplifies some code.