Fix bugs

* use tac instead of "tail -r"
* fetch tails -f
* don't use mktemp because the filename is determined by the script