hosts/bsd: check exports only if exports file exists [GH-2714]