Fix get_release when called with non-default version.

This call was broken before this: `gen_release test`
Merge pull request #414 from thomasvandoren/fix-gen-release-test

Fix gen_release when called with non-default version.

This call was broken before this: `gen_release test`