Optimizing post install scrip