Improve wildcard search, fix leaks and segfault

- bugfix for the last VIFE parser bugfix
- fix potential segmentation fault
- fix memory leaks in error case
- improve wildcard search (Beware untested!)