BAIN: Rework uninstall empty directory processing

Fixes #130