Quasi linear flows on tori: regularity of their linearization