fix bug in root-perms.sh