Fixed issue so that empty directories are also excluded when specifying "*/directory/*"