removing bad dirs