Fix exec (still using getoutput, no proper error checking)