Ensure layered files are merged/flattened.