version: fix version handling without extra_version set Without extra_version, we had an extra - at the end of the version string. Signed-off-by: Anas Nashif <anas.nashif@intel.com>