match mpath with module avail
support for avail string, where string matches mpath as well as name