fix up detection of version by define_versions.sh