Instead of adding a -tmp_path flag, why not just honor the standard TMPDIR environment variable? See http://en.wikipedia.org/wiki/TMPDIR