Added root user privilege check for the script