changing directory listing to work with arbirtrarily long directories :p by reallocating output files etc..