fix error on module installation

the xml files need to be ordered so that the xmlids are defined before they are
used.