Ensuring that temporary directories will be cleaned up. Fixes #25