added permissions check for /var/cpanel