different check for Chef (bnc#803358)

YCP version of https://github.com/yast/yast-yast2/pull/176

(bash part remains the same)