check that file is not a kate backup file

files ending with "~" are kate backup files and should not be
processed. Otherwise it raises and error "Unsupported format"