from_disk: Fix ImportError with dulwich >= 0.20
See https://github.com/dulwich/dulwich/commit/24986435b81e39ab596be1e3afba418cc20444b2