dos file format detection