Installer script optimization