build rubygem beta version string correctly