[DEB] replace dashes (-) to tildes (~) in version

Dashes hold special significance in the Debian package versions. Versions
that contain a dash and should be considered an earlier version (e.g.
pre-releases) may actually be ordered as later (e.g. 12.0.0-rc.6 >
12.0.0). We'll work around this by replacing dashes with tildes.

Fixes #396