Fix issue #4315

Added regex matching to Config.getXXXConfig() by using Pattern.compile().matcher().find() for the wildcard search. To not break the old documented wildcards (just * not .*) there is a replacement before.

Added tests to test old and new wildcard behavior.

TODO: Check if `InstancePermission.implies()` breaks with the new matching algorithm!