Moves content type extraction out of the main metadata call

This was being done incorrectly as it will pulling the top-level
content-type (multipart) and using it as the embedded file content-type
this way the value is just copied from the metadata file in the s3 'copy' operation