Return a version object

Found this in another project, and thought it was brilliant. Probably YAGNI, but
it's 2 lines...