bug: fix exclude to accept directories and files as glob patterns.