improve detecting pkng in freebsd, update #1952