support both Chef 10.x and 11.x line