This whole block can just be:

```python
try:
    out, err, rc = get_output_error_code([cmd, '--version'])
except OSError:
    # no command
    return False
if rc:
    # command failed for some weird reason
    return False
return check_version(out.lstrip('v'), '0.9.12')
```