[PATCH 3/7] util: handle EACCES when opening hook directories