Fix bug with newlines on unix