Fix #186. Accept only integers for version numbers