Use getTempFolder() from core when checking for temp in installer.

Fix for issue #2420. Instead of using custom temp folder discovery
code in the installer, use the core getTempFolder() instead.
Merge pull request #2631 from halkyon/installer_temp_folder

Use getTempFolder() from core when checking for temp in installer.