bugfix: remove trailing slash from matched wildcard arguments