Use rmdir_recursive() system call instead of exec() calls.
Tidy up our custom package deinstall function.
Explicitly test for '0' and empty since '0' is a valid entry.