Added checking file before sed-ing it (canto-next)