Added check that script is running as root