Remove unnecessary directories