Implemented the recursive logic to process all recursive directories looking for stg files. refs #417