fix SuSE package removal failure

* Fixes #1732
* Augments PR from #1174 with a regression test