Add "is root" check, improve error output