fix for getversion 

i had pasted the wrong definition, sorry
Merge pull request #484 from flatfly/patch-1

fix for getversion