bootstrap: fix path check on freebsd