Add `ckan version`, with support from the build process.