simplyfy mimetype parsing of 'file' output