check for the existence of a temp file