Library to guess the MIME type of a file with both filename lookup and magic file detection