Already got it working, I'll update the UDF as soon as possible.
I've written a proper workaround, only problem with it is that it takes a long time to recurse trough subfolders and files if there are a lot of them.

If Ruud comes through that will save drastic amounts of time.