Add CentOS 7 support

This applies some fixes to get this to work on CentOS 7.
Thinking about it, you can just do

```ruby
unless node['platform_version'] >= 7
```

to simplify the conditional.