g.ckan_base_version should work at least for non-dev version we could use latest if debug is on maybe but I think fix that later