Fix deletion of folders - Fixes #182