Improve MIME detection in FileBackend