Use correct version logic for apt