I think it is somehow used by the HC when starting a slave to tell the slave where the temp dir is.

I don't know why this is done; haven't looked at the history.

I don't know how painful this is, but passing in the correct dir via the constructor is more robust.