Also try USERPROFILE for temp directory since it is sometimes used on Windows.