Removing bad directories