Add preinstall hook to init submodule dependencies
Build on preinstall