fixed use of removed globals. closes #1287.
Merge pull request #1289 from rojblake/installer_fix

fixed use of removed globals. closes #1287.