Correctly remove directories on un-install.

Closes #78.
Closes #251.
Merge pull request #252 from pjf/251_delete_fixes

Correctly remove directories on un-install.