added USE_SUDO environmental variable to toggle sudo