Auto install packages if missing