Terminate `tail` and add `-t` option to slave script

* Terminate log `tail` when the process is finished.
* Add `tail` option also to slave script so log from slaves can
  be gathered easily.