Cleanup Hadoop directory appropriately