Better file distribution algorithm for hadd