Remove extra directories