*8996* Porting stats fixes

"process all files inside directory that starts with the passed string"