Use tempfile library instead of hard-coding location.