[TIMOB-14958] Fixed bug with visitDirsSync() passing the correct filenam...

...e and path to the visitor function.