Fixing varnamc train-from to handle line endings properly