Use mimetype to define file extension

Sometimes, original-format metadata from soundcloud's api doesn't match
real file type.
Prefer using mimetype to define file extension, if mimetype is unknown
we use original-format metadata.