Absolutely right. The ticket for failure to maintain lane would be easier for the officer to prove than for following too closely, since he was 2 cars back. One could easily deduce that you were following too closely since yous said you went around him to avoid a collision.
Many people say they did not stop for a red light because they feared that the person behind them would not stop. This is a poor excuse on many levels.
1) You don't know that.
2) They are responsible if they do.
3) You cannot judge how fast they were going or how far they are behind you by looking in the mirror, and especially for the quick millisecond one may have glanced before making the decision. A mirror reflects in 2 dimensions and you need 3 to quickly and accurately judge an objects position in space. (Try driving around with one eye closed and see how weird it is when judging speed and distance.)
Quite frankly, I think the true answer is momentum. We are a momentum based society. This is why we don't make complete stops at stop signs and bicyclists run them all together. We want to keep moving.
Maybe you didn't want to slow. It is more efficient, time-wise, to maintain the maximum amount of speed and simply go around the obstacle and wait for it to clear.
In time we hate that which we often fear.
Visit nwham.com for accurate Ham Repeater information.