Fix a bug when using CompositeFileSystem.copy_from_local