New helper function to count char occurrences
clean up
clean up?
Improved pattern matching

- ResolveRelativePath can now be called with null as path
- Added the Match method to check wildcards (windows file search
pattern)
Wildcards (windows file search patterns) support