Improve post-install script of packages