Decided to not use matchdep after all

Its path stuff didn't work when used as a module, and it didn't fit the API i wanted. It's actually less LOCs now.