Do not write out empty_directories file if the contents will not change.
Ensure version is encoded in en-US locale for cross-locale repos