--beautify missing last new line fixed

Before, using the `--beautify` option, the generated file didn't have a last new line