makefile fix (tempfile removed before commiting)