kernel version - don't show the dash if flavor is empty

docker version displays the version of the kernel with a trailing dash if there's no flavor.
This pull request fixes this.