support for package maintainer scripts (preinst, postinst, prerm, postrm)