Adds test to not use sudo if running as root