Fix compatibility for locate-dominating-file
Require cl-lib and remove macro when-let