Update installer.lua

Improved functionality