Directory structure cleaning