Redmine #4203: Fix software reports having "env" as package manager.
Log data from network with LogRaw().
Rename variables and add comments to clarify.
Rename STRINGS to PATH_STRINGS in strlist_test.
Minor stylistic change.
Fix reverse direction binary search in strlist.

That memrchr() call was skipping the first characters, instead of
skipping the last ones (that include the previous separator found.)

Also added some comments while at it.
Shuffle around things, rename functions accurately, and implement tests.

Looks like a big commit but shouldn't change anything
functionality-wise.
Fix RealPackageManager() when first word is "env".

Because the index of the first space after env is 3, not 4, we need to
make sure that it doesn't depend on the "< 4" check.
Fix consecutive spaces in RealPackageManager().

We should skip over them.
Merge pull request #1624 from kacfengine/env_package_manager

Redmine #4203: Fix software reports having "env" as package manager.
Merge pull request #1629 from jimis/reverse_dns_access_rules

Reverse dns access rules
Typo.
Merge pull request #1630 from jimis/reverse_dns_access_rules

Typo.
Do not segfault on type checking NULL Rvals.

Add unit test. Close #5416