Add Chef 10.x compatibility when making PUT request

In Chef 10.x client the put method is called `put_rest` so we call one or each other depending of version.