Don't bother to sniff for mime-type on windows and ms-dos
small stylistic issue
Implement a simplified and improved parser