Initial commit of script to process all stages of a directory tree