Fix line-ending bug (thanks thp)