Back to basics, writing du from scratch