Handle rm exit code correctly
Added ldconfig call in postinst and postrm