This is required by modprobe and also to help doing unit tests in future.
If we create a kmod_module from a name, the path returned is relative to the module dirname, as passed during kmod_ctx creation. Note that if kmod_ctx is created with kmod_new(NULL), the dir used is the one returned by uname.