Check if "use_inline_resources" method is defined

On some versions of Chef (10.16.6 in my case) 'use_inline_resources' might not be defined.

Currently it produces error:

```
NameError
---------
undefined local variable or method `use_inline_resources' for #<Class:0x7ff6be572cd8>
```

Fix taken from https://github.com/opscode-cookbooks/ark/pull/25