Get the content-type of a file using magic mime. This is _NOT_ limited to the whitelist of mime types described in the Constants. Use this with care. Note mime_content_type() inspects file contents and can't always determine css/js files correctly, this is a hack fix for that. https://stackoverflow.com/a/17736797/7694753