Feature #1770: Handle non-uniform 'file -b' output in distributions

(cherry picked from commit c1ff1fd11b1992601c86c3eedfbb4c7c080a398d)