Fix string version generation

Close 214