Handle new format of MGI identifier. 

Handle new format of MGI identifier. Fixes #782