backport Tempfile.create so psych tests will run outside ruby trunk