Fixes errors in postinst.