make .tmp directory configurable