reduce code duplication

- also will find ancient versions in old distros in yolo mode