[fix] move sudo check to hoodie-cli