Add version function, taken from https://github.com/BurntSushi/xsv/blob/master/src/util.rs

According to the licence at
https://github.com/BurntSushi/xsv/blob/master/UNLICENSE this "is free and
unencumbered software released into the public domain".