Use loader.scm and installed-modules.scm from ${PREFIX}/etc/uim
They are changed by uim-module-manager during installation.
They should not be in ${PREFIX}/share.
I have changed hack for SunOS. My change may break SunOS build.
I will fix the breakage.