sanba.upgradehelpers: Use standard functionality for getting temp dir.