Write ungzipped files to a temporary path if needed.

This may occur if the original test data are installed in the system,
and consequently, the ungzipped version cannot be placed in the same
directory.