Version string parsing and comparison functions