Add basic support for tilde in version and revision strings

The tilde sorts before anything, even the end of a part. This matches
the behavior in newer dpkg and apt versions; if we ever switch to
one of these, we may want to also include tilde support fink,
hence this patch.

See <http://www.debian.org/doc/debian-policy/ch-controlfields.html>