Detect the MIME Type of a file