Remove uneeded directories