Fixed temporary file processing in file.filter

It broke if you give :temporary-file #t and pass realtive pathname
with some directories as the output file.