Added check to see if the root user is running the scripts.