update serverspec-1.x.x code to serverspec-2.0.0