Revert "Fix Tempfile usage under ruby 1.8.7"

This reverts commit b49a6ff4ccd169eef6671263ccb29d3ead957697.