Fixed parsing of packages in the install script.