Fixed update of module groups

Module groups should not be rewritten completely when reading from
default data.

Also made project type search case insensitive.

Change-Id: I41b8799a63669b16362bb6792a399bbef753938d