add environment variables via upstart and switch from su to sudo