use use_inline_resources only if defined

use_inline_resources doesn't work in all versions of Chef

NameError: undefined local variable or method `use_inline_resources'