if tmp contains directories, cleanup task fails. Add maanagement for directories
Merge pull request #121 from osallou/cleanup_dirs

if tmp contains directories, cleanup task fails. Add management for directories too