fix and simplify pkgng detecton for freebsd, fix #2048, thanks @cognitiveflux