fixed errors with small files; mytail() yields data, instead of printing to stdout