Rework debian, rpm versioning

This commit sanifies the rpm versioning to be a little more tactful in its
removal of the trailing dot from a version. Second, this commit modifies the
debian version to address an issue where an rc tag resulted in a dash followed
by a dot in the version. This only handles the case where we don't care about commits on top of the RC tag, that information is lost in this deb version iteration (though, it has always been lost, this just doesn't fix it yet).

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>