Fix temporary file on Linux