fixed apt optimization script