The temp directory variable is TEMP_DIR not TEMPDIR.