Fix the field count detection when using awk. #3454