test for SourceFolder and ImportFolder before deleting files