fix: use function form of glob exclude for Node < 22.14 compat (#212)
The string array form of the exclude option on node:fs/promises glob
was only added in Node 22.14.0. Users on Node 22.0.0-22.13.x get
ERR_INVALID_ARG_TYPE at runtime. Switch to the function form which
works on all Node >= 22.
Co-authored-by: Eray <erayackgoz@gmail.com>