add new line at the end of file, as pointed by jnavila