Handle different cases in prerm and postinst