Working out version numbering