CHEF-4327: OC-8757: Directory resource broken due to incompatible ffi gem

The fix is to satisfy prerequisites before including other gem dependencies.