We should really be using FakeFS or something instead...