changing things to use sudo if we're not logged in as root