driver: cleanups to module name reading