fixed postinst scripts