Incorporated `/usr/bin/file` to guess mime (if `mimetypes.guess` fails).