Use Node's OS library to have platform-independent line breaks in the generated file.