Revert mime.lib.php modifications.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>