deprecate core.tmp-dir and use tempfile.mktemp instead
- revise warning message regarding temporary directories