We now do a head -1 on the curl output, to avoid the extra nl pitfall