scan_system.sh is including internal mmodules every time.
scan_system.sh tool has the option --internal-swmodules in order to internal software modules that, by default should not be included. However in the mmodules case they are being included all the time, regardless of the option being used or not.
Fix: Include mmodeles when they have the attribute internal="true" in xml if and only if the option --internal-swmodules was given in the command line.