Solve a bug to get module's name with cmdline action (ticket 1507).