Clean up main directory.