fix main_package_version calculation in the case of build_and_publish