fix for issue #329 - recursive wildcard search requires a slash at the end of the path, or it will match directories with the same prefix