add Denis' script to hadd on the subdirectories of a given directory