Made version parsing testable.