bugfix: for some images gm identify -format %[exif:orientation] returns more than one line, e.g. '0\n0'.