Reinstate Tempfile finalizer to ensure it is deleted. Fixes #1133
Merge branch 'jruby-1_7'