added use of largemem for TR<2.0
fixed to use glob to find files