Make sure the generator uses writeFileBinary so it doesn't Windows line ending
Write the temporary directory stuff yourself