Fix handling of broken lines at the end of the script