installer fix - better order of mysql var detection