Fix detection of 8050/8250 format

Closes #3