sh tests: Update $LINENO tests after $FreeBSD$ removal
Fixes: d0b2dbfa0ecf ("Remove $FreeBSD$: one-line sh pattern")