Improved metadata module management.

Fixed the (MDrm) command. The command removes any metadata module present.