bug squashing fest: moved stack in recurseDir in proper scope (which will save memory),