Permissions changes for FreeBSD/Solaris

The initial commit was reverted (see
https://github.com/cfengine/core/pull/1593 for background). Instead of
changing permissions for all nix systems then, differentiate between
(FreeBSD|Solaris) and others. This bloats up the tests, but hey.