Use dpkg --compare-versions which works much better than awk for this sort of check