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.