version: add ability to specify a version suffix

Since we will no longer have "stable" and "unstable" releases after 1.0.0, use a suffix for pre-releases, such as "rc1", "rc2", ... so the full version string reads: 1.0.0-rc1, for example.

While in development the suffix shall be "dev".