Improve checker for sudo

If install user is different from ruby owner, add `sudo`.