script to bundle large flat directories into trees