Ensure correct version comparison

When cur_version=0~something.

(This is a corner case).
Merge branch 'patch-2' of https://github.com/sathieu/jenkins-debian-glue