added root check

so we don't need to call sudo from inside of the script