Fixed local cluster slaves to use temporary work directory.