Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)