Refactored usages of "tempnam()" function.