Fixed postinst and postrm scripts

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>