Make lib compatible with chefspec 4.x up