add conditional

sorta supports Chef 10.x in that it won't blow up, but COOK-4213 will
not be fixed for Chef 10.x by design.