Fix headless auto-compare when expected have \r's.