Fix mime check. Closes #112