Added -tmp-dir option