Fix preferences purging.

I didn't finish testing this fully as the 7.3 box was giving me some trouble, but here's an attempt at cleaning up how we handle /etc/apt/preferences.