Remove useless directories.