config: fix executable format detection on latest FreeBSD.

Submitted by: Bryan Drewery
PR: 3075