zypp: move the checking for new api near zypp import