cuke: make File.tail utility more robust