Use temp dir instead of mocking fs