Remove unneeded directories