Clean up directory structures.