pkg/debian: Fix versioning if upstream is dev/rc

  * Ensure a clean upgrade path on debian by changing:
   * upstream version x.x.x.dev and x.x.x.rcx to 'x.x.x~dev' and 'x.x.x~rcx'
   * the debian revision should use UTC instead of local time