Removed ereg

Deleted obsolete ereg in scanFolder function