Updated cleaning script to only use sudo on ubuntu.