fix path of wildcard tree matches