Better use BUILDDIR for the temporary file.