Update `FileSystem` to use new `CommandStack` API.