Removing unnecessary directories