Fixes fact when git not present

```
Could not retrieve fact='git_version', resolution='<anonymous>': undefined method `strip' for nil:NilClass
```