Add postinst and prerm scipts for ubuntu and rhel