Work around a bug in NamedTemporaryFile(). (RhBug:1036116)