A nitpick, but what if we checked the file to see if the last char wasn't a `;` and then only appended one in that case?