fixing version detection - independent of struct.unpack now