Autoinstall packages if necessary