Fix some bugs.

- Wildcard matching function was broken
- Some harmless clang warnings
- recursive GetDirList() did not produce the intended output