Optimizing post install script