Truncate at 100 lines but only when we reach 150 lines. This way after
shortening the file we won't re-truncate it before adding 50 more lines!