Added support for wildcards in the middle of path definitions