Make newlines in test platform independent