Add a new line to the end of the file
Write plan to a file inside the output dir