postinst and postrm cleanups

Please, code-review me out.