Fix tail -f issue #347