Fix dynamic loading match

We can't use #match, if IOSXR is seen in source list before IOS, then
IOS will #match on IOSXR class and wrong model is used for IOS devices.

And obviously stupid to use regexp if you don't atbsolutely have to.