update postrm and postinst scripts