#482346 by Berdir: Move module installation logic to module_enable() to prevent errors upon enabling modules.