[packaging] Make sure the %preun and %post scripts do not fail.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>