Allow tempfile to open the file, so it doesn't warn about possible insecurity. This probably fixes a real, but unlikely security hole too.