Use ifs instead of direct tests, as they clash with the set -e of the postrm.
3