fix dependency issue + TMP DIR env