check if script was run as root