Clean up postinst scripts.

Change-Id: Ia9c91371d992269b0a45ac9770843a86a269c4aa