Move version finding code into the util directory.