Fix detection of 'command not found' cases for FreeBSD