remove python-2.5-ism when guessing mimetype (bug #218)

This syntax doesn't work on python 2.4, which we still support.