Fixes a bug in the clean up process

Old files were partially removed
Merge pull request #17 from Alain-es/dev

Fixes a bug in the cleanup process