Make version comparison a little smarter

Most importantly, consider RCs and milestones to be before the
final release.