Fix gen_release when called with non-default version.

This call was broken before this: `gen_release test`