Changed doApt to use system('')