guessFileFormat function

Automatically pick proper tape file format.