Check whether the file ends with a newline
Exit with status 0 if success; 1 if failed